/*
* TextModifier
*
* r1
*
* GNU General Public License v3.0
*/

package com.acme;

public class TextModifier {
	private final static String argsError = "Too small args count";
	
	public static void main(String[] args) {
		String str;
		
		if(args.length == 0) {
			System.out.println(argsError);
			return;
		}
		str = args[0];
		
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if(Character.isDigit(charAtIndex)) {
				continue;
			}
			if((charAtIndex == '+') || (charAtIndex == '-')) {
				System.out.print("" + charAtIndex + charAtIndex);
			} else {
				System.out.print(charAtIndex);
			}
		}
	}
}
